import { decodeParam } from "@/utils/encrypt";
import { useSearchParams } from "react-router-dom";
const getParams = (e: string) => {
  const [params] = useSearchParams();
  return decodeParam(params.get(e)!);
};

export default getParams;
